var app = angular.module("myApp",[]);

app.controller("myCtrl",function($scope,$http){
	$http({
        type : "get",
        dataType: "json",
		withCredentials: true,	//跨域名请求。XHR：XMLHttpRequest (XHR) ，基于XML技术的Http请求
	    crossDomain: true,
	    contentType: "application/json",
        //async:true,
        url : host + "/terminal/goods/homePage"
    }).success(function(response){
        if(response.code == 2000){
        	$scope.choiceness_goods = response.data.catagories[0].goods;
        }
    });
})